package cn.bjc.org.domain;


import cn.bjc.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data   //包含get,set,toString
@AllArgsConstructor //有参构造
@NoArgsConstructor  //无参构造
public class Employee extends BaseDomain {

    //名字
    private String username;
    //电话
    private String phone;
    //邮件
    private String email;
    //盐值    加密使用的
    private String salt;
    //密码
    private String password;
    //年龄
    private Integer age;
    //员工状态 - 1启用，0禁用
    private Integer state = 1;
    //所属部门ID
    private Long department_id;

    //department对象:多个员工对应一个部门
    private Department department = new Department();
    
    //登录信息ID
    private Long logininfo_id;//登录信息
    //店铺ID
    private Long shop_id;//店铺信息
    
    //确认密码字段
    private String comfirmPassword;
    
    //这个字段只是为了接收前端传的参数
    private Long role_id;
}
